home *** CD-ROM | disk | FTP | other *** search
-
- #C ASSIGN
- #F Routes requests to a different drive. Page 2-6
- #X ASSIGN [x=y [...]]
- #E ASSIGN A=C B=C assigns all requests for drives A & B to C.
- ASSIGN restores all drive assignments to normal.
- #C BACKUP
- #F Backs Up Fixed Disk Files Page 2-9
- #X BACKUP [d:][path]]filename][.ext] d:[/S][/M][/A][/D:mm-dd-yy]
- /S - Files in all subdirectories will also be backed up
- /M - Backup only those files that have changed since last backup
- /A - Backup files to be added to the diskette in the specified drive
- /D:mm-dd-yy - Backup on or after the specified date
- #E BACKUP C:\ A: /S backs up all files on C to A.
- #C BASIC[A]
- #F Starts the basic interpreter (normal or advanced).
- Optionally executes the program name given as a parameter.
- #X BASIC[A] [d:][program[.bas]]
- #E BASICA TEST loads the BASIC interpreter and executs TEST.BAS.
- #C BATCH
- #F Executes Batch file Page 2-13
- #X [d:filename[parameters]
- #C BREAK
- #F Checks for Control Break Page 2-33
- #X BREAK [ON | OFF]
- #C CD
- #F Changes Current Directory - same as CHDIR Page 2-35
- #X CD [[d:[path]]
- #E CD \ change the current directory to the root directory.
- CD \LEVEL1\LEVEL2 change the current drives directory to level2.
- #C CHDIR
- #F Changes Current Directory - same as CD Page 2-35
- #X CHDIR [[d:[path]]
- #E CHDIR \ change the current directory to the root
- directory.
- CHDIR \LEVEL1\LEVEL2 change the current drives directory to level2.
- #C CHKDSK
- #F Checks disk and reports status Page 2-38
- #X CHKDSK [d:][filename] [/F][/V]
- /F - Will try to Fix errors in the File Allocation Table
- /V - Will tell of progress in CHKDSK (Verbose)
- #E CHKDSK B: /F checks drive B and fixes all allocation errors.
- #C CLS
- #F Clears CRT Screen Page 2-42
- #C COMP
- #F Compares files Page 2-44
- #X COMP [d:][path][filespec[.ext]] [d:][path][filename[.ext]]
- #E COMP A:JUNK B:JUNK compares junk on drive A to junk on drive B.
- COMP A:*.ASM C: compares all files with the extension .ASM
- on drive A to the files with the same name on C.
- COMP A:\LEVEL1 A:\LEVEL2 compares all files in subdirectory level1
- to the corresponding files in level2.
- #C COPY
- #F Copies files Page 2-48
- #X COPY <filespec> [d:][path][filename[.ext]]
- COPY [/A][/B][filespec][/A][/B] [filespec][/A][/B][/V]
- /A - Treat as ASCII file. When used with source file name copies
- up to but not including the first Ctrl Z (EOF marker).
- When used with target file name causes a Ctrl Z to be added as
- the last character of the file.
- /B - With source file name entire file based on directory size is copied.
- With target file causes NO Ctrl Z to be added to the file.
- /V - Verify that target sectors are written correctly.
- #E COPY A:HELP.DAT B: copies help.dat to drive B.
- COPY A:HELP.DAT TEMP creates the file TEMP on the default drive and
- copies HELP.DAT into it.
- COPY B:*.* C: copies all files on B to C.
- COPY A:FILE1+B:FILE2 C:FILE3 copies a:file1 and b:file2 into c:file3.
- #C CTTY
- #F Changes to an Auxiliary Console Page 2-61
- #X CTTY device-name
- #C DATE
- #F Set/Read the current date Page 2-63
- #X DATE [mm-dd-yy]
- #C DEL
- #F DELete/Erase files from diskette Page 2-65
- #X DEL [d:]<filespec> or
- Erase [d:]<filespec>
- #E DEL B:*.BAS deletes all files on B with the extension .BAS.
- #C DIR
- #F List filenames on diskette Page 2-66
- #X DIR [d:][<filename[.ext]>][/P][/W]
- where /P will pause the screen when it is full
- where /W will provide a wide display, 5 file names per line.
- #E DIR /P displays all files on the current drive, pauses when screen
- is full.
- DIR B:*.LST displays all files on B with extension .LST.
- #C DISKCOMP
- #F Compares diskettes Page 2-73
- #X DISKCOMP [d:] [d:][/1][/8]
- /1 - One side only. The default is 2 sides.
- /8 - Eight Sector. The default is 9 sectors.
- #E DISKCOMP A: B: compares the double sided 9 sector diskettes in A & B.
- #C DISKCOPY
- #F Copies diskettes Page 2-77
- #X DISKCOPY [d:] [d:][/1]
- /1 - Copy one side only.
- The first drive [d:] is the source drive (copy from).
- The second drive [d:] is the target drive (copy to).
- #E DISKCOPY A: B: copies the diskette in A to B.
- #C ECHO
- #F Inhibits Screen Display - Batch Command Page 2-20
- #X ECHO [ON|OFF|message]
- ON causes batch file commands to be displayed on the screen. This
- is the default setting.
- OFF prevents further display of batch file commands except text
- following the command ECHO.
- #E ECHO OFF stops the display of batch file commands.
- ECHO THIS IS A MESSAGE displays THIS IS A MESSAGE on the screen
- even if echo is off.
- #C ERASE
- #F ERASE/Delete files from diskette Page 2-81
- #X ERASE [d:]<filespec> or
- DEL [d:]<filespec>
- #E ERASE B:*.BAS deletes all files on B with the extension .BAS.
- #C EXE2BIN
- #F Converts some .EXE Files to .COM format Page 2-83
- #X EXE2BIN [d:][path]filename[.ext] [d:][path][filename][.ext]]
- #C FIND
- #F Searches Files for Strings of Text. Page 2-87
- #X FIND [/V][/C][/N]string[[d:][path]filename[.ext] ...]
- /V - All Lines NOT containing string are displayed.
- /C - Display a count of the number of matches in file.
- /N - Display the relative line Number of eatch matching
- line to be displayed before the line from the file.
- #E FIND "Fool's Paradise" BOOK1.TXT BOOK2.TXT BOOK3 outputs all lines
- from book1.txt, book2.txt, and book3 (in that order) that contain
- the string Fools Paradise.
- DIR B: | FIND /V "DAT" outputs the names of all files on B that
- do not contain the string DAT.
- #C FOR
- #F Iterative Execution of Commands - Batch command Page 2-22
- #X FOR %%variable IN (set) DO command
- #E FOR %%X IN (*.PAS) DO COPY %%X B: will copy all files with the
- extension .PAS to drive B.
- FOR %%a IN (FILE1 FILE2) DO DIR %%a will list the directory information
- for FILE1 and FILE2.
- #C FORMAT
- #F Formats a diskette Page 2-89
- #X FORMAT [d:][/S][/1][/8][/V][/B]
- where /S will put COMMAND.COM on the diskette.
- where /1 formats the diskette as one-sided.
- where /8 formats with eight sectors per track.
- where /V Will allow a volume name to be entered.
- where /B Leaves space on the disc for an operating system to
- be installed with the SYS command.
- *** WARNING *** The format command destroys all files on the disk.
- #E FORMAT B: formats the diskette in drive B.
- #C GOTO
- #F Transfers Control to the Line Following the Label Page 2-23
- Batch Command
- #X GOTO label
- where label is a line in the batch file containing a label
- that begins with a colon.
- #E GOTO ABORT transfers control to the line following the label
- :ABORT in the batch file.
- #C GRAPHICS
- #F Loads the graphics screen print routine. Page 2-96
- After this has been done the print screen key will work
- when the display screen is in graphics mode. You only need to
- do this once each time the computer is turned on or reset.
- #E GRAPHICS installs the graphics print routine.
- #C HELP
- #F Provides help with DOS commands
- #X HELP [command] or
- HELP to display menu of commands
- #E HELP HELP displays this screen.
- #C IF
- #F Conditional Execution of Commands - Batch Command Page 2-24
- #X IF [NOT] condition command
- where the condition parameter is one of the following:
- ERRORLEVEL number
- string1==string2
- EXIST filespec
- #E IF EXIST FILE1 GOTO ABC transfers control to label :ABC if FILE1
- exists on the default drive.
- IF %1==Doug ECHO HI DOUG displays the message HI DOUG on the screen
- if parameter 1 was Doug.
- MYPROG
- IF ERRORLEVEL 2 GOTO ABORT transfers control to label :ABORT if the
- program MYPROG set the errorlevel to 2 or
- more before terminating.
- IF NOT EXIST FILE2 ECHO THE FILE DOES NOT EXIST displays the message
- if FILE2 does not exist on the default drive.
- #C MD
- #F Creates (Makes) a Subdirectory - Same as MKDIR. Page 2-98
- #X MD [d:]path
- #E MD LEVEL1 creates subdirectory level1 under the current
- directory.
- MD \LEVEL1\LEVEL2 creates subdirectory level2 under subdirectory
- level1 when the current directory is the root.
- #C MKDIR
- #F Creates (Makes) a Subdirectory - Same as MD Page 2-98
- #X MKDIR [d:]path
- #E MKDIR LEVEL1 creates subdirectory level1 under the current
- directory.
- MKDIR \LEVEL1\LEVEL2 creates subdirectory level2 under subdirectory
- level1 when the current directory is the root.
- #C MODE
- #F Set the mode of the printer , display or COM Port. Page 2-100
- #X MODE [LPT#:][n][,[m][,P]] (sets printer parameters)
- # = 1, 2, or 3 (the printer number)
- n = 80 or 132 (characters per line)
- m = 6 or 8 (lines per inche)
- P = continuous retry on time-out errors
- MODE n or MODE [n],m[,T] (sets video display parameters)
- n = 40, 80, BW40, BW80, CO40, CO80, or MONO
- m = R or L (shift the display right or left)
- T requests a test pattern to align the display.
- MODE COMn:baud[,parity][,databits[,stopbits[,P]]]
- n = asynchronous communications adapter number
- P = continuous retry on time-out errors
- MODE LPT#:=COMn (directs printer output to serial port)
- # = 1, 2, or 3 (the printer number)
- n = asynchronous communications adapter number
- #C MORE
- #F Displays a screen-full of data at a time Page 2-107
- #X MORE <[filespec]
- #E MORE <FOO.DAT displays the file FOO.DAT on the screen and pauses
- when the screen is full until a key is pressed.
- #C PATH
- #F Searches Directories for Commands or Batch Files Page 2-108
- #X PATH [d:]path[[;[d:]path...]
- #E PATH C:\;A:\ search the root directory of drive C then the root
- directory of drive A for programs or batch files.
- #C PAUSE
- #F Provides a system wait - Batch Command Page 2-28
- #X PAUSE [remark]
- #E PAUSE THIS IS A MESSAGE displays the message THIS IS A MESSAGE on the
- screen and waits for a key to be pressed.
- #C PRINT
- #F Queues and prints data files Page 2-110
- #X PRINT [[d:][filename[.ext]][/T][/C][/P] ...]
- /T - Terminate mode - Stop printing and delete all file names from
- the print queue.
- /C - Cancel mode - The preceeding filename and all following filenames
- are cancelled from the print queue.
- /P - Print mode - The preceeding filename and all following filenames
- are added to the print queue to be printed.
- #E PRINT FILE1 FILE2 adds file1 and file2 to the print queue.
- PRINT FILE1/C FILE2 FILE3/P deletes file1 and file2 from the print queue
- and adds file3 to the print queue.
- #C PROMPT
- #F Sets New Prompt Page 2-116
- #X PROMPT [prompt-text]
- The following special strings may also be included in the prompt text.
- $$ = the $ character $t = the time
- $d = the date $p = the current directory
- $v = DOS version number $n = the default drive letter
- $g = the > character $l = the < character
- $b = the | character $q = the = character
- $h = backspace and erase $e = the escape character
- the previous character $- = carriage return line feed
- #E PROMPT $n: the default drive letter followed by a colon.
- PROMPT $n:$p $h the default drive letter, a colon, the current
- directory, 2 spaces, and a backspace.
- #C RECOVER
- #F Recovers files on a damaged disk Page 2-119
- #X RECOVER [d:][path]filename[.ext]
- or RECOVER d:
- #C REM
- #F Displays a remark - Batch Command Page 2-29
- #X REM [remark]
- #E REM Test Batch File displays the message Test Batch File on the
- screen if ECHO is on. (See ECHO command).
- #C RENAME
- #F Renames a file on a diskette Page 2-122
- #X REN[AME] <filespec>
- #E RENAME FILEAAA FILEBBB.XXX changes the name of FILEAAA to
- FILEBBB.XXX.
- #C RESTORE
- #F Restores diskette files to fixed disk Page 2-124
- #X RESTORE d: [d:][path][filename][.ext][/S][/P]
- /S - Backed up files in all subdirectories will be restored
- /P - Prompt before restoring files that have changed since backup
- The files must have been saved to diskette with the BACKUP command.
- #E RESTORE A: C:*.DAT restores all files with the extension .DAT
- that were backed up from the current directory.
- #C RD
- #F Removes a subdirectory - same as RMDIR Page 2-127
- #X RD [d:]path
- #E RD B:\LEVEL2\LEVEL3 removes the subdirectory LEVEL3 from LEVEL2.
- #C RMDIR
- #F Removes a subdirectory - same as RD Page 2-127
- #X RMDIR [d:]path
- #E RMDIR B:\LEVEL2\LEVEL3 removes the subdirectory LEVEL3 from
- LEVEL2.
- #C SET
- #F Inserts Strings into the Command Processor's Environment Page 2-128
- #X SET [name=[parameter]]
-
- #C SHIFT
- #F Shifts command line parameters left - Batch Command Page 2-30
- #X SHIFT
- Allows use of more than 10 parameters on batch command lines.
- Also allows use of succesive parameters in a loop in a batch file.
- #E If the file TEST.BAT is invoked with the command TEST A B C and contains
- the commands: SHIFT
- ECHO %1
- SHIFT
- ECHO %1
- the first echo command will display B and the second will display C.
- #C SORT
- #F Sorts Text Data Page 2-131
- #X SORT [/R][/+n]
- /R - Reverse order sort
- /+n - Start the sort on column n
- #E SORT /R <UNSORT.TXT >SORT.TXT reads the file UNSORT.TXT, sorts the
- records, and writes them to SORT.TXT.
- DIR | SORT /+14 produce a directory listing sorted
- by file size (size starts in column14.
- #C SYS
- #F Transfers the DOS System to a disk Page 2-133
- #X SYS d:
- #C TIME
- #F Set/Read the time Page 2-134
- #X TIME [hh:mm:ss.xx]
- #C TREE
- #F Displays all directory paths Page 2-136
- #X TREE [d:][/F]
- /F - Display the names of all files in each path
- #C TYPE
- #F Display a ASCII file on the screen Page 2-139
- #X TYPE <filespec>
- #E TYPE a:\help\help.dat
- #C VER
- #F Displays DOS Version Number Page 2-141
- #C VERIFY
- #F Verifies Data Page 2-142
- #X VERIFY [ON|OFF]
- #C VOL
- #F Displays Volume Identification Page 2-144
- #X VOL [d:]
-